public class Teacher {
     private String teacherId;
     private String name;
     private String gender;
     private Course taughtCourse;
     public String getGender() {
    return gender;
}
     public Teacher(String teacherId, String name, String gender, Course taughtCourse) {
         this.teacherId = teacherId;
         this.name = name;
         this.gender = gender;
         this.taughtCourse = taughtCourse;
     }
     public String getTeacherId() {
         return teacherId;
     }
     public String getName() {
         return name;
     }
     public Course getTaughtCourse() {
         return taughtCourse;
     }
 }